package com.gec.oasys.dao;

import com.gec.oasys.pojo.SysDepartMent;
import com.gec.oasys.util.SoulPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysDepartMentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysDepartMent record);

    int insertSelective(SysDepartMent record);

    SysDepartMent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysDepartMent record);

    int updateByPrimaryKey(SysDepartMent record);

    public List<SysDepartMent> querySysDepartment(SysDepartMent sysDepartMent);

    //根据父母（P）的id，获取对应的子节点
    List<SysDepartMent> querySysDepartMentByPid(Integer id);

    List<SysDepartMent> dataGrid(SoulPage<SysDepartMent> soulPage, @Param("so") SysDepartMent sysDepartMent);
}